﻿using MTEA.LIB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace MTEA.MTTask
{


    
   public class MTTaskConfig
    {
        public int TimeFrames { get; set; }
        public double Lots { get; set; }
        public int TickId { get; set; }
        public OrderType OrderType { get; set; }

        public static string GetDescription(object obj)
        {
            var props = obj.GetType().GetProperties();
            StringBuilder builder = new StringBuilder();
            foreach (var prop in props)
            {
                builder.Append(string.Format("{0} : {1} ", prop.Name, prop.GetValue(obj)));
            }
            return builder.ToString();
        }

    }
}
